Script: -- Example by Alan Pabst, Heizer Software¬--on windowEvent wdID,wdName,objNo,objName,objValue¬¬if objValue="Open" then ¬ wsSet wdID,"ProgressBox","Height", "90"¬ ¬else if objValue="Close" then ¬ ¬else if objValue="Suspend" then ¬ ¬else if objValue="Resume" then ¬ ¬else if objValue="CloseBox" then ¬ ¬else if objValue="ZoomBox" then ¬ ¬else if objValue="GrowBox" then ¬ ¬else if objValue="TitleBar" then ¬ ¬end if¬¬--end windowEvent
ItemType: PUSH
Rect: 16,55,96,75
Name: Close
CancelItem: TRUE
AutoClose: TRUE
ItemType: PUSH
Rect: 141,55,213,75
Name: Scan
DefaultItem: TRUE
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬wsSet wdID,"Cancel","Disabled", "true"¬wsSet wdID,"5","Text", ""¬put empty into listHolder¬lock screen¬put the number of this cd into returnPoint¬put the number of cards into x¬go cd 1¬wsSet wdID,"3","Max", x¬repeat with i = 1 to x¬ wsSet wdID,"3","Value", i¬ put the short name of this cd&return after listHolder¬ go next cd¬end repeat¬beep¬go to card returnPoint¬wsSet wdID,"3","Value", "0"¬wsSet wdID,"Cancel","Disabled", "FALSE"¬unlock screen¬wsSet wdID,"5","Text", listHolder¬wsSet wdID,"ProgressBox","Height", "170"¬¬--end mouseUp
ItemType: CNTL
Rect: 17,9,217,20
BlackColor: 0,0,-26215
Name: Untitled
Style: 320
Min: 0
Max: 2
Value: 0
Step: 1
Leap: 10
ItemType: PICT
Rect: 14,21,224,37
Name: progressO
ItemType: LIST
Rect: 8,103,224,169
Text:
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬put the name of this card into imHere¬get wsGet(wdID,"5","selectionText")¬if it = empty then ¬ beep¬end if¬if it ≠ empty then¬ put it into goTo¬ if goTo ≠ imHere then¬ if word 1 of goTo = "card" then ¬ go to goTo¬ else¬ go to card goTo¬ end if¬ end if¬end if¬--end mouseUp